package com.joney.website;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableTransactionManagement
@SpringBootApplication
@EnableCaching// 开启缓存，需要显示的指定
public class NoteApplication {

	protected final static Logger logger = LoggerFactory.getLogger(NoteApplication.class);

	public static void main(String[] args) {
		SpringApplication app = new SpringApplication(NoteApplication.class);
		//app.setBannerMode(Banner.Mode.OFF);
		app.run(args);
//		SpringApplication.run(Application.class, args);
		logger.info("application is success!");
	}
}
